<html>
<head>
<title>My Form</title>
<style>
	div { margin-top:5px; }
	#error_msg { color:red; }
</style>
</head>
<body>

<?php echo form_open('company/add');?>
	<form method="POST">
		<div>
			<h7>First Name</h7>
			<input type="text" name="fname" placeholder="First Name" value="<?= set_value('fname'); ?>">
			<small id="error_msg"><?= form_error('fname'); ?></small>
		</div>
		<div>
			<h7>Middle Name</h7>
			<input type="text" name="mname" placeholder="Middle Name" value="<?= set_value('mname'); ?>"> 
			<small id="error_msg"><?= form_error('mname'); ?></small>
		</div>
		<div>
			<h7>Last Name</h7>
			<input type="text" name="lname" placeholder="Last Name" value="<?= set_value('lname') ?>">
			<small id="error_msg"><?= form_error('lname'); ?></small>
		</div>
		<div>
			<h7>Password</h7>
			<input type="password" name="password" placeholder="Password">
			<small id="error_msg"><?= form_error('password'); ?></small>
		</div>
		<div>
			<h7>Password Confirmation</h7>
			<input type="password" name="passconf" placeholder="Confirm Password">
			<small id="error_msg"><?= form_error('passconf'); ?></small>
		</div>
		<div>
			<h7>Address</h7>
			<input type="text" name="address" placeholder="Address" value="<?= set_value('address'); ?>">
			<small id="error_msg"><?= form_error('address'); ?></small>
		</div>
		<input type="submit" value="Register &rarr;">
	</form>
</body>
<?php echo form_close(); ?>
</html>
